
import  matplotlib.pyplot as plt
import numpy as np

x = [0,1,3,6,3,6,8]
y1 = [0,1,3,6,3,6,8]
y2 = [0.8,0.7,0.6,0.5,0.4,0.3,0.2]


fig,ax1 = plt.subplots()
ax2 = ax1.twinx()

ax1.plot(x,y1)
ax2.plot(x,y2)





plt.show()